﻿function initPage(){
    $addHandler(window, "resize", setBodyHeight);
    setBodyHeight();
}
function setBodyHeight(){
    if(window.innerHeight){
        clientHeight = window.innerHeight;
    }
    else if(document.documentElement.clientHeight){
        clientHeight = document.documentElement.clientHeight;
    }
    else if(document.body.clientHeight){
        clientHeight = document.body.clientHeight;
    }
    var offSet = 156;
    var body = $get("body");
    body.style.height = clientHeight - offSet + "px";
}